
import store from '@/store'

/* 
用于判断当前用户是否有指定按钮的权限
btnPer: 特定按钮的权限值
*/
export default function hasBtnPermission(btnPer) {
  // 判断按钮权限列表中是否包含此权限值
  return store.getters.buttons.includes(btnPer)
}